/*
 * Created by: 	Zhaoningbo
 * at:			2011-8-16 - 上午11:45:28
 * blog:		(http://zhaoningbo.iteye.com/)
 */
package com.gc.action;

import java.io.Serializable;
import java.util.Calendar;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;

@SuppressWarnings("unchecked")
public class LogListener implements Serializable, ApplicationListener {

    private static final long serialVersionUID = 8553519927319976707L;

    public void onApplicationEvent(ApplicationEvent applicationEvent) {
        if (applicationEvent instanceof LogEvent) {
            System.out.println(Calendar.getInstance().getTime() + ""
                    + applicationEvent.toString());
        }
    }

}
